<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript test client</title>

<script type="text/javascript" src="client.js" ></script>

<script language="JavaScript">
//@Reference
var hellojava = new tuscany.sca.Reference("hellojava");


function hellojava_gethelloJavaResponse(hello) {
	document.getElementById('hello').innerHTML = hello;
}

function sayHelloJava() {
 hellojava.helloJava(hellojava_gethelloJavaResponse);

}
function init() {
	sayHelloJava()
}
</script>
</head>
<body onload="init()">
<h1>Javascript SCA Test</h1>
<h2> Response:</h2>
<div id="hello"></div>
</body>
</html>